package br.usp.pcs.basys2.event;

import br.usp.pcs.basys2.BasysProcess;

public class InterruptionForPeripheralException extends Exception {
	
	private BasysProcess process;
	private Integer timeToWait;
	private String peripheralName;

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	public InterruptionForPeripheralException(BasysProcess basysProcess,
			Integer time, String peripheralName) {
		this.process = basysProcess;
		this.timeToWait = time;
		this.peripheralName = peripheralName;
	}

	public long getTimeToWait() {
		return timeToWait;
	}

	public BasysProcess getProcess() {
		return process;
	}

	public String getPeripheralName() {
		return peripheralName;
	}

}
